package pm.issue.factory;




import pm.issue.service.IssueService;
import pm.issue.service.IssueStateService;
import pm.issue.service.IssueTypeService;

public class IssueFactory {
	private static IssueFactory instance;
	private IssueService issue;
	private IssueStateService issueState;
	private IssueTypeService issueType;

	private IssueFactory() {
		issue = new IssueService();
		issueState=new IssueStateService();
		issueType=new IssueTypeService();
		
	}

	public static synchronized IssueFactory getInstance() {
		if (instance == null) {
			instance = new IssueFactory();
		}
		return instance;
	}

	public IssueService createIssueService() {
		return issue;
	}
	
	public IssueStateService createIssueStateService() {
		return issueState;
	}
	public IssueTypeService createIssueTypeService() {
		return issueType ;
	}
}
